let a = 12
let b = a.toString()
for (let i = 0; i < b.length; i++) {
  console.log(b[i])
}
